import request from '@/utils/request'

// 社群老师列表
export function getTeacher() {
  return request({
    url: '/sale/getNameOperationlist',
    method: 'post',
  })
}

// 下拉价格
export function getPriceList() {
  return request({
    url: '/product/getOperationPriceList',
    method: 'get',
  })
}

// 下拉性别
export function getSex() {
  return request({
    url: '/dict/getSexOperationlist',
    method: 'get',
  })
}

// 下拉年龄
export function getAges() {
  return request({
    url: '/dict/getAgesOperationlist',
    method: 'get',
  })
}

// 下拉召回标签
export function getBackTags() {
  return request({
    url: '/dict/getCallbackOperationlist',
    method: 'get',
  })
}

// 销售列表
export function listSale(data) {
  return request({
    url: '/sale/list',
    method: 'post',
    data: data
  })
}

//用户召回
export function recall(data) {
  return request({
    url: `/sale/doRecall`,
    method: 'post',
    data: data
  })
}

//短信召回
export function sendSms(data) {
  return request({
    url: '/customer_acquisition/sendRecallSms',
    method: 'post',
    data: data
  })
}

//用户标记
export function updateOrder(data) {
  return request({
    url: '/sale/updateOrder',
    method: 'post',
    data: data
  })
}

//修改手机号
export function updatePhone(data) {
  return request({
    url: '/sale/updatePhone',
    method: 'post',
    data: data
  })
}